<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>二维码</title>
</head>

<body>

<div id="qrcode" style="width: 100px;height: 100px;margin-top: 15px"></div>
</body>
<script type="text/javascript" src="//cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="//static.runoob.com/assets/qrcode/qrcode.min.js"></script>
<script>
    new QRCode(document.getElementById("qrcode"),{
        text: "weixin://wxpay/bizpayurl?pr=ymEqQFMzz",  //存放后端发送请求给微信，返回的code_url
        width: 100,
        height: 100
    })
</script>

</html>